public class StrToInt {
	public int change(String s) {
		int number = 0;
		char[] schar = s.toCharArray();
		int i = 0;
		while (i < schar.length) {
			number = number * 10 + schar[i] - '0';
			i++;
		}
		return number;
	}

	public static void main(String[] args) {
		StrToInt s = new StrToInt();
        System.out.print(s.change(""));
	}
}
